import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//积分规则配置列表
export function jtkRuleList(params) {   
    return request({
        url: `/shenye/jtk/points/rule/list`,
        method: 'get',
        params
    })
}

//编辑积分规则配置
export function pointsRule(data) {
    return request({
      url: '/shenye/jtk/points/rule',
      method: 'put',
      data
    })
}

//批量编辑积分规则配置
export function pointsBatchRule(data) {
    return request({
      url: '/shenye/jtk/points/rule/batch/update',
      method: 'post',
      data
    })
}

//查询积分规则配置
export function pointsDetail(id) {
    return request({
        url: `/shenye/jtk/points/rule/detail/${id}`,
        method: 'get',
        
    })
}


//神椰聚推客订单列表
export function jtkOrderList(params) {   
    return request({
        url: `/shenye/jtk/orders/list`,
        method: 'get',
        params
    })
}
